﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Index_Top.aspx.cs"
    Inherits="V5_EShop.Admin.Admin_Index_Top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <%=V5.Load.LoadAdminHeader(this) %>
    <script type="text/javascript">
        function $$(id) {
            return document.getElementById(id);
        }
        function ShowTime() {
            now = new Date();
            hour = now.getHours();
            minute = now.getMinutes();
            second = now.getSeconds();
            var day = ["日", "一", "二", "三", "四", "五", "六", ];
            time_str = (hour < 10) ? ("0" + hour) : hour;
            time_str += ":";
            time_str += (minute < 10) ? ("0" + minute) : minute;
            time_str += ":";
            time_str += (second < 10) ? ("0" + second) : second;
            $$("TimeSpan").innerHTML = "" + (now.getFullYear()) + "年" + (now.getMonth() + 1) + "月" + (now.getDate() + 0) + "日 " + time_str + " 星期" + day[new Date().getDay()];
            setTimeout('ShowTime()', 1000);
        }

        function CheckBTN1(theObj, URL, URLmain) {
            $(theObj).addClass("button_down");
            if (URL != "") {
                parent.frames["menu"].location = URL;
            }
            if (URLmain != "") {
                parent.frames["main"].location = URLmain;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="top_1">
        <tr>
            <td height="38" class="top_1_1">
                &nbsp;
            </td>
            <td class="top_1_2">
                &nbsp;
            </td>
            <td align="right">
                <a href="Admin_Index_Main.aspx" target="main">返回首页</a>&nbsp;┊&nbsp;<a href="Admin_Logout.aspx"
                    target="_parent">退出系统</a>&nbsp;┊&nbsp;<a title="进入客户中心" href="User/User_Index.aspx"
                        target="main">进入客户中心</a>&nbsp;┊&nbsp;<a title="修改密码" href="Admin_Admin.aspx?Action=edit&adminID=<%=AdminID %>"
                            target="main">修改密码</a>&nbsp;┊&nbsp;<asp:LinkButton ID="lbtnClearCache" runat="server"
                                OnClick="lbtnClearCache_Click">清除缓存</asp:LinkButton>&nbsp;┊&nbsp;<a title="关于产品"
                                    href="Admin_LogOut.aspx" target="main">关于产品</a>&nbsp;┊&nbsp;<a title="系统帮助" href="Admin_HelpList.aspx"
                                        target="main">系统帮助</a>&nbsp;
            </td>
        </tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="100%" class="top_2">
        <tr>
            <td height="38" width="6">
            </td>
            <td class="top_2_1 top_2_1_down" onclick="TopUrlGo(this,'Admin_Index_left.aspx?type=product','GZProduct/Admin_Product.aspx')">
                产品管理
            </td>
            <td class="top_2_1" onclick="TopUrlGo(this,'Admin_Index_left.aspx?type=content','Article/Admin_Article.aspx')">
                新闻公告
            </td>
            <td class="top_2_1" onclick="TopUrlGo(this,'Admin_Index_left.aspx?type=template','GZProductOrder/Admin_ProductOrder.aspx')">
                订单管理
            </td> 
            <td class="top_2_1" onclick="TopUrlGo(this,'Admin_Index_left.aspx?type=user','GZProductUser/Admin_User.aspx')">
                客户管理
            </td>
            <td class="top_2_1 " onclick="TopUrlGo(this,'Admin_Index_left.aspx?type=config','Admin_Index_Main.aspx')">
                后台管理
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        function TopUrlGo(hei, menuUrl,mainUrl) {
            //清除其他样式 设置当前样式
            $(".top_2_1").each(function () {
                $(this).removeClass("top_2_1_down");
            });
            $(hei).addClass("top_2_1_down");
            var ns6 = document.getElementById && !document.all;
            if (ns6) {
                parent.frames["left"].location = menuUrl;
                parent.frames["main"].location = mainUrl;
            }
            else {
                parent.frames["left"].location = menuUrl;
                parent.frames["main"].location = mainUrl;
            }


        }
    </script>
    </form>
</body>
</html>
